﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Web.Controllers
{
    [ValidateInput(false)]
    public class RegionController : Controller
    {
        //
        // GET: /Region/

        public ActionResult Index(int id)
        {
            var resp = Framework.Data.RepositoryFactory.GetRepository();
            var citylist = resp.Get<Dal.Entities.Region>(i => i.provinceid == id && i.depth == 3);
            return Json(citylist, JsonRequestBehavior.AllowGet);
        }

    }
}
